package com.woniuxy.sensitive.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.sensitive.entity.SensitiveWords;

import java.util.List;
import java.util.Map;

public interface SensitiveWordService {

    /**
     * 检查文本中是否包含敏感词
     */
    boolean containsSensitiveWord(String text);

    /**
     * 获取文本中包含的所有敏感词
     */
    List<String> getSensitiveWords(String text);

    /**
     * 替换文本中的敏感词
     */
    String replaceSensitiveWords(String text, char replaceChar);

    /**
     * 添加敏感词
     */
    void addSensitiveWord(String word);

    /**
     * 移除敏感词
     */
    void removeSensitiveWord(String word);

    Page<SensitiveWords> listSensitiveWords(int pageNum, int pageSize, String word);
}